package cn.edu.gzhmt.user.service;

import cn.edu.gzhmt.user.domain.User;

/**
 * User业务层
 * @author azhuo
 *
 */
public interface IUserService {

	/**
	 * 用户注册
	 * @param form
	 * @throws UserException
	 */
	void regist(User form) throws UserException;

	/**
	 * 进行用户激活
	 * @param stateCode
	 */
	void active(String stateCode) throws UserException;

	/**
	 * 进行用户登录
	 * @param form
	 * @return 
	 * @throws UserException
	 */
	User login(User form) throws UserException;

	/**
	 * 根据用户id，字段名称，字段值来更新用户信息
	 * @param uid
	 * @param column
	 * @param value
	 * @return
	 * @throws UserException 
	 */
	User editData(String uid, String column, String value) throws UserException;

}
